#include "pipe.hpp"
#include "Comm.hpp"
int main()
{
    //获取key
    key_t key = GetKey(PATHNAME, PROJ_ID); 
    //创建shm
    int r_shmid = CreatShm(key, SIZE);
    //建立映射关系
    char* pshm = BuildMap(r_shmid);
    //读shm的data
    ReadShm(pshm);
    //删除映射关系
    DelMap(pshm);
    //删除shm
    DelShm(r_shmid);
    return 0;
}